package chapter02;

public class Example05 {
    public static void main(String[] args) {
        short s = 3;//短型
        int i = 5;
        //计算时s和i都是提升为int型 但是java强制转化成short赋值给s
        s +=i;//相当于s = s + i;
        System.out.println("s ="+s);
    }
}
